package com.eliza.music.view.router

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.rounded.ArrowBack
import androidx.compose.material.icons.automirrored.rounded.ExitToApp
import androidx.compose.material.icons.automirrored.rounded.KeyboardArrowRight
import androidx.compose.material.icons.automirrored.rounded.List
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavHostController
import com.eliza.library.ui.inter.IBaseRoute
import com.eliza.library.ui.inter.INavScreen
import com.eliza.library.ui.inter.NavRegisterRouter

enum class MusicRouter(
    override val title: String,
    override val imageVector: ImageVector,
    override val content: @Composable (nav: NavHostController) -> Unit
) : IBaseRoute {
    Index("推荐",
        Icons.AutoMirrored.Rounded.List,
        { com.eliza.music.view.music.MusicScreen.RecommendScreen() }
    ),
    Discover("发现",
        Icons.AutoMirrored.Rounded.KeyboardArrowRight,
        { com.eliza.music.view.music.MusicScreen.FindScreen() }
    ),
    Plan(
        "动态",
        Icons.AutoMirrored.Rounded.ArrowBack,
        { com.eliza.music.view.music.MusicScreen.DynamicScreen() }

    ),
    Mine(
        "我的",
        Icons.AutoMirrored.Rounded.ExitToApp,
        { com.eliza.music.view.music.MusicScreen.MineScreen() }


    );

    companion object : INavScreen {
        override fun RegisterRoute(
            navController: NavHostController,
            builder: NavGraphBuilder
        ) {
            NavRegisterRouter(navController, builder, entries)
        }
    }
}
